import{d as g}from"./merakDemo.js";import{P as _}from"./prism.js";/* empty css      */import T from"./dropWrap.js";import{d as y,e as k,o as C,n as v,a as S,P as $,Q as E,R as s,$ as t,X as o,a4 as i,S as N,K as h,a5 as M,M as u,h as x,a8 as I,a9 as L}from"./elementPlusModules.js";import{_ as H}from"./index.js";import"./lodashModules.js";import"./vxeTableModules.js";const V=a=>(I("data-v-07e76875"),a=a(),L(),a),w=V(()=>s("div",{class:"statement"},[s("ol",null,[s("li",null,"duration:0时不自动关闭,默认时间为 element-plus 配置时间"),s("li",null,"提type示类型：success、warning、message、error")])],-1)),P={class:"language-js"},B=y({__name:"notification",setup(a){g();let d=k(`
    ElNotification({
        title: 'Title',
        message: h('i', { style: 'color: teal' }, '我是用Vnode创建的结构'),
    });

    ElNotification({
        title: 'Title',
        message:'这里是一个纯字符串,并且不会自动关闭',
        duration:0
    });

    ElNotification({
        title: "Title",
        message: \`这里是一个纯字符串,并且不会自动关闭,提示类型：\${type}\`,
        // duration: 0,
        type:"success"
     });

     ElNotification({
        title: "Title",
        dangerouslyUseHTMLString: true,
        message: \`<h3>这里是一个HTML字符串,并且不会自动关闭,需要使用 dangerouslyUseHTMLString: true</h3>\`,
        duration: 0
     });

  
      `);C(()=>{v(()=>{_.highlightAll()})});const m=()=>{u({title:"Title",message:x("i",{style:"color: teal"},"我是用Vnode创建的结构")})},c=()=>{u({title:"Title",message:"这里是一个纯字符串,并且不会自动关闭",duration:0})},r=l=>{u({title:"Title",message:`这里是一个纯字符串,并且不会自动关闭,提示类型：${l}`,duration:0,type:l.toLowerCase()})},f=l=>{u({title:"Title",dangerouslyUseHTMLString:!0,message:`<h3>这里是一个纯字符串,并且不会自动关闭,提示类型：${l}</h3>`,duration:0})};return(l,e)=>{const n=S("el-button");return $(),E(M,null,[w,s("div",null,[t(n,{plain:"",onClick:m},{default:o(()=>[i(" 自动延时关闭 ")]),_:1}),t(n,{plain:"",onClick:c},{default:o(()=>[i(" 不自动关闭 ")]),_:1}),t(n,{plain:"",onClick:e[0]||(e[0]=p=>f())},{default:o(()=>[i(" 使用了html字符串 ")]),_:1}),t(n,{plain:"",onClick:e[1]||(e[1]=p=>r("Success"))},{default:o(()=>[i(" Success ")]),_:1}),t(n,{plain:"",onClick:e[2]||(e[2]=p=>r("Warning"))},{default:o(()=>[i(" Warning ")]),_:1}),t(n,{plain:"",onClick:e[3]||(e[3]=p=>r("Info"))},{default:o(()=>[i(" Info ")]),_:1}),t(n,{plain:"",onClick:e[4]||(e[4]=p=>r("Error"))},{default:o(()=>[i(" Error ")]),_:1})]),t(T,{key:"oreo"},{default:o(()=>[s("pre",null,[s("code",P,N(h(d))+" ",1)])]),_:1})],64)}}}),Q=H(B,[["__scopeId","data-v-07e76875"]]);export{Q as default};
